Skip to content

fix(ci): fix two failures in cleanup-ghcr-images workflow#25684

Merged
pront merged 1 commit into
masterfrom
fix/cleanup-ghcr-images-workflow
Jun 25, 2026
Merged

fix(ci): fix two failures in cleanup-ghcr-images workflow#25684
pront merged 1 commit into
masterfrom
fix/cleanup-ghcr-images-workflow

Conversation

@pront

@pront pront commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

The cleanup-ghcr-images workflow has been failing on every weekly run due to two bugs in the cleanup-test-runner job:

  • Wrong package name: the package is namespaced as vector/test-runner in GHCR, not test-runner. The action was failing immediately with get versions API failed. Package not found.
  • Invalid input combination: num-old-versions-to-delete and min-versions-to-keep are mutually exclusive in actions/delete-package-versions v5. Specifying both caused Invalid input combination on every run.

The cleanup-vector-nightlies job is removed. Investigation revealed that GITHUB_TOKEN with packages: write cannot delete org-owned container package versions — the delete:packages scope is required, which GITHUB_TOKEN does not provide.

Until then, we can run purge github nightly after each release.

How did you test this PR?

  • Triggered workflow_dispatch runs on the branch; cleanup-test-runner now passes cleanly.
  • Confirmed vector/test-runner package exists at the correct GHCR path.

Change Type

  • Non-functional (chore, refactoring, docs)

Is this a breaking change?

  • No

Does this PR include user facing changes?

  • No. A maintainer will apply the no-changelog label to this PR.

@pront pront requested a review from a team as a code owner June 25, 2026 18:37
@github-actions github-actions Bot added the domain: ci Anything related to Vector's CI environment label Jun 25, 2026
@datadog-vectordotdev

This comment has been minimized.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c7f04abe79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/cleanup-ghcr-images.yml Outdated
@pront pront added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Jun 25, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8dd8f581ad

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/cleanup-ghcr-images.yml Outdated
Comment thread .github/workflows/cleanup-ghcr-images.yml
Comment thread .github/workflows/cleanup-ghcr-images.yml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 67d3d07b9b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/cleanup-ghcr-images.yml Outdated
Comment thread .github/workflows/cleanup-ghcr-images.yml Outdated
Comment thread .github/workflows/cleanup-ghcr-images.yml Outdated
@pront pront marked this pull request as draft June 25, 2026 19:12
Fix two bugs in the cleanup-ghcr-images workflow that caused every
weekly run to fail:

- cleanup-test-runner: fix package name from 'test-runner' to
  'vector/test-runner' (the package is namespaced under vector in GHCR)
- cleanup-test-runner: remove num-old-versions-to-delete which is
  mutually exclusive with min-versions-to-keep in
  actions/delete-package-versions v5, causing "Invalid input combination"
- cleanup-vector-nightlies: remove this job entirely; GITHUB_TOKEN with
  packages:write cannot delete org-owned container package versions
  (delete:packages scope required). Will be re-added using the GitHub
  App token.
@pront pront force-pushed the fix/cleanup-ghcr-images-workflow branch from ea0846e to dd5a9b3 Compare June 25, 2026 19:46
@pront pront marked this pull request as ready for review June 25, 2026 19:47
@pront pront added this pull request to the merge queue Jun 25, 2026
Merged via the queue into master with commit a1d74ad Jun 25, 2026
85 checks passed
@pront pront deleted the fix/cleanup-ghcr-images-workflow branch June 25, 2026 19:51
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

domain: ci Anything related to Vector's CI environment no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants